﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

////using eBook.Service;
////using Infrastructure;
namespace Gama.Website
{
    public class ServiceProvider
    {
        public static bool Authenticated(string userName, string password)
        {
            //////var service = new CustomerService();
            //////var dto = service.Get(userName);
            //////if (!dto.IsNull() && new SecurityService().ComparePassword(password, dto.Password))
            //////{
            //////    VisitContext.SessionManager.Instance.Visitor = new UserIdentity().CreateCustomer(dto.ID, dto.FirstName, dto.LastName, dto.Role);
            //////    //Merge cart
            //////    VisitContext.CartManager.MergeCart();

            //////    return true;
            //////}
            return false;
        }
        public static void SignOut()
        {
            VisitContext.Session.Clear();
        }
    }
}